package edu.unika.aifb.graphindex.importer.db.metadata;


import java.io.Serializable;

public class Column implements Serializable{
	private static final long serialVersionUID = -209530095420950443L;
	private Table table;
	private String name;
	private boolean primaryKey;
	private boolean visible = true;
	private int dataType;
	private String type;

	public Column(Table table, String name){
		this.table = table;
		this.name = name;
	}
	public Table getTable() {
		return table;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(boolean primaryKey) {
		this.primaryKey = primaryKey;
	}
	public boolean isVisible() {
		return visible;
	}
	public void setVisible(boolean visible) {
		this.visible = visible;
	}
	public int getDataType() {
		return dataType;
	}
	public void setDataType(int dataType) {
		this.dataType = dataType;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public String toString(){
		return table.getName() + "." + name;
	}
}
